package com.wetao.lib_common.EventBus;

public class EventBusMessage {
    public static final int EVENT_BUS_ACTION_TSDSERVICE_RESETDATA = 201;
    public static final int EVENT_BUS_ACTION_WEBSOCKE_ISROOM= 202; //进入房间msg值是websoket指令json
    public static final int EVENT_BUS_ACTION_WEBSOCKE_SMALLTEST= 203; //收到课堂小测，msg值是websoket指令json
    public static final int EVENT_BUS_ACTION_WEBSOCKE_SMALLTEST_COMMIT= 204; //提交课堂小测，界面提交发给socket, socket接受后发生指令，msg是json数据,
    public static final int EVENT_BUS_ACTION_WEBSOCKE_SINGLESWAP= 205; //收到答题互动，msg值是websoket指令json
    public static final int EVENT_BUS_ACTION_WEBSOCKE_SUBMITED= 206; //收到答题互动学生是否提交过
    public static final int EVENT_BUS_ACTION_WEBSOCKE_SMALLTEST_RETURN= 207; //后台收到课堂小测，返回处理是否成功
    public static final int EVENT_BUS_ACTION_WEBSOCKE_ISROOM_EXIT = 208; //退出房间；
    public static final int EVENT_BUS_ACTION_WEBSOCKE_ANSWER_EXIT = 209; //退出课堂小测或者退出答题互动
    public static final int EVENT_BUS_ACTION_ERROR = 210; //系统报错

    public static final int EVENT_BUS_ACTION_UPDATE_PHONE = 211; //更新手机号码
    public static final int EVENT_BUS_ACTION_UPDATE_CLASS_ADMIN = 212; //更新行政班
    public static final int EVENT_BUS_ACTION_UPDATE_JOIN_EXIT_CLASS_COACH = 213; //更新选课班

    public static final int EVENT_BUS_ACTION_PEN_CONNECT_IS = 214;//通知蓝牙是否连接，msg的值"未连接", "已连接"
    public static final int EVENT_BUS_ACTION_ANSWER_SUBMIT_SUCCESS = 215; //科学训练，提交成功，通知列表界面重新加载列表数据
    public static final int EVENT_BUS_ACTION_OUTLOGIN = 216; //退出登录，比如需要断开蓝牙
    public static final int EVENT_BUS_ACTION_ANSWER_PROGRESS = 217; //在线答题中退出,通知显示答题进度

    public static final int EVENT_BUS_ACTION_SEND_DATA_SUCCESS = 218; //直播发送指令成功

    public static final int EVENT_BUS_ACTION_NOT_EXIT_ANSWER = 219; //直播发送下一次作答命令时，上一次作答界面还未结束，强制退出页面不需要提交作答

    public static final int EVENT_BUS_ACTION_RELOGIN = 220; //直播发送下一次作答命令时，上一次作答界面还未结束，强制退出页面不需要提交作答


    public static final int EVENT_BUS_ACTION_NEXT_READ_FILE = 221; //下一篇

    public static final int EVENT_BUS_ACTION_DATA_TP= 222; //图谱音视频文档暂停播放
    public static final int EVENT_BUS_ACTION_VIDEO_INTO= 223; //进入视频
    public static final int EVENT_BUS_ACTION_VIDEO_OUT= 224; //退出视频
    public static final int EVENT_BUS_ACTION_AUDIO_INTO= 225; //进入音频
    public static final int EVENT_BUS_ACTION_AUDIO_OUT= 226; //退出音频
    public static final int EVENT_BUS_ACTION_DOC_INTO= 227; //进入文档
    public static final int EVENT_BUS_ACTION_DOC_OUT= 228; //退出文档
    public static final int EVENT_BUS_ACTION_LINE_TUPU_INTO= 229; //进入图谱在线训练
    public static final int EVENT_BUS_ACTION_LINE_TUPU_OUT= 230; //退出图谱在线训练
    public static final int EVENT_BUS_ACTION_CODE_TUPU_INTO= 231; //进入图谱点阵训练
    public static final int EVENT_BUS_ACTION_CODE_TUPU_OUT= 232; //退出图谱点阵训练
    public static final int EVENT_BUS_ACTION_CODE_INTO= 233; //进入教辅点阵训练
    public static final int EVENT_BUS_ACTION_CODE_OUT= 234; //退出教辅点阵训练
    public static final int EVENT_BUS_ACTION_BACK_FINISH= 235; //互动作答时用户返回键退出作答
    public static final int EVENT_BUS_ACTION_ROOM_CONNECT_STATE= 236; //直播课堂网络切换状态

    private int action;
    private String msg;

    public EventBusMessage(int action, String msg) {
        this.action = action;
        this.msg = msg;
    }


    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    @Override
    public String toString() {
        return "EventBusMessage{" +
                "action=" + action +
                ", msg='" + msg + '\'' +
                '}';
    }
}
